package net.zzy.pbbot.plugin.tiktok.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.zzy.pbbot.plugin.tiktok.entity.TikTokDaoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author zhuZhaoYang
 * @date 2021/9/25 22:56
 */
@Mapper
public interface TikTokGirlsMapper extends BaseMapper<TikTokDaoEntity> {

    /**
     * 随机返回一条数据
     *
     * @return 一条数据
     */
    @Select("SELECT * FROM `tiktok_girls` ORDER BY RAND() LIMIT 1")
    TikTokDaoEntity selectOneUrlByRand();
}
